From: Florian Müllner Date: Tue, 3 Sep 2013 10:07:28 +0000 (+0200) Subject: appDisplay: Don't show page indicators if there's only one page X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3524 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e68b648a33661562abbcc1061a6a2a43c886e455;p=gnome-shell.git appDisplay: Don't show page indicators if there's only one page It doesn't make sense to show the indicators in that case, so don't show them. This has been the design in the first place, but the code that did that was lost at some point during review ... https://bugzilla.gnome.org/show_bug.cgi?id=707363 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index bc4afee40..10d10d1cb 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -224,6 +224,7 @@ const PageIndicators = new Lang.Class({ children[i].destroy(); } this._nPages = nPages; + this.actor.visible = (this._nPages > 1); }, setCurrentPage: function(currentPage) {